package com.scs.application.modules.upms.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.scs.application.modules.upms.entity.Role;
import com.scs.application.modules.upms.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 角色Mapper
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    IPage<User> pageUsers(IPage page,@Param("roleId") String roleId);
    IPage<User> pageUserByRole(IPage page, @Param(Constants.WRAPPER) QueryWrapper<User> queryWrapper,@Param("roleId") String roleId);
}
